
using System;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using System.Collections.Generic;
using System.Threading.Tasks;
using HCD.Entities.Dtos;
using HCD.Entities;
using HCD.Hcd.Dtos;
using Partner.Utility;

namespace HCD.Hcd
{
    /// <summary>
    /// 应用层服务的接口方法
    ///</summary>
    public interface IHcdAppService : IApplicationService
    {
        /// <summary>
        /// 获取标签类型字典
        ///</summary>
        /// <returns></returns>
        Task<List<LabelTypeDto>> GetLabelTypeDicts();

        /// <summary>
        /// 获取患者来源科室列表(For左侧筛选列表)
        /// </summary>
        /// <returns></returns>
        Task<List<SourceDeptDto>> GetSourceDeptList();

        /// <summary>
        /// 获取标签列表(For左侧筛选列表)
        /// </summary>
        /// <returns></returns>
        Task<List<LabelTypeDto>> GetLabelTypeList();

        /// <summary>
        /// 获取管理分型列表(For左侧筛选列表)
        /// </summary>
        /// <returns></returns>
        Task<List<ManagePartingDto>> GetManagePartingList();

        /// <summary>
        /// 获取在管病人列表（主界面）
        /// </summary>
        /// <param name="Type">查询类型</param>
        /// <param name="TypeValue">查询值</param>
        /// <returns></returns>
        Task<List<HcdMasterDto>> GetHcdPatientList(string Type, string TypeValue);


        /// <summary>
        /// 获取病人所有标签
        /// </summary>
        /// <param name="PatientId">病人Id</param>
        /// <param name="VisitId">就诊标识</param>
        /// <returns></returns>
        Task<List<HcdPatLabelsDto>> GetHcdPatLabelsList(string PatientId, string VisitId);

        /// <summary>
        /// 更新消息状态为已读
        /// </summary>
        /// <param name="lstMessage">未读消息列表</param>
        /// <returns></returns>
        Task<bool> UpdateMessageStatus(List<HcdMessageEditDto> lstMessage);

        /// <summary>
        /// 设置病人为随访病人
        /// </summary>
        /// <param name="item">病人主记录的物理主键</param>
        /// <returns></returns>
        Task<int> UpdatePatientIntoFollowUp(HcdMasterFollowUpDto item);

        /// <summary>
        /// 将病人移除院内管理
        /// </summary>
        /// <param name="item">病人主记录的物理主键</param>
        /// <returns></returns>
        Task<int> SetPatientOutofManagement(HcdMasterRemoveDto item);
    }
}
